import { modelAdd, modelRemove } from './modelOpera.js';

let allObject = [];

class CTCGKJGFrameAdd {
  constructor(scene) {
    const modelData = [
      { url: './model/CTC采集机柜体.fbx', num: 1, x: -1, y: 1, z: 0 },
      { url: './model/CTC工控机柜标签.fbx', num: 1, x: -3, y: 110, z: 0 },
      { url: './model/CTC工控机采集电源指示灯.fbx', num: 1, x: -2, y: 94, z: 12 },
      { url: './model/CTC工控机柜1.fbx', num: 1, x: -12, y: -16, z: 0.3 },
      { url: './model/CTC工控机柜2.fbx', num: 1, x: -15, y: 58.8, z: 0.3 },
      { url: './model/CTC工控机柜2.fbx', num: 1, x: -15, y: 36.8, z: 0.3 },
      { url: './model/CTC工控机柜2.fbx', num: 1, x: -15, y: -56.3, z: 0.3 },
      { url: './model/CTC工控机柜2.fbx', num: 1, x: -15, y: -78.3, z: 0.3 },
      { url: './model/CTC采集机柜门.fbx', num: 1, x: -3, y: 0, z: 0 },
      { url: './model/CTC采集机柜门网格.fbx', num: 1, x: -6, y: 0, z: 0 },
    ];
    new modelAdd(modelData, (group) => {
      group.position.set(-267, -19, -72.5);
      scene.add(group);
      allObject = group;
    });
  }
}
class CTCGKJGFrameRemove {
  constructor(scene) {
    new modelRemove(scene, allObject);
  }
}
export { CTCGKJGFrameAdd, CTCGKJGFrameRemove };